package com.atung.parking.request.save;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
public class SaveOrUpdateParkingIotRequest implements Serializable {

    @ApiModelProperty("车场编号")
    private Long id;
    @ApiModelProperty("客户编号")
    private Long superUserId;
    @ApiModelProperty("联系方式")
    @NotBlank(message = "联系方式不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "无效的手机号")
    private String contactPhone;
    @ApiModelProperty("车场名称")
    @NotBlank(message = "停车场名称不能为空")
    private String name;
    @ApiModelProperty("车位总数")
    @NotNull(message = "车位总数不能为空")
    private long totalSpaces;
    @ApiModelProperty("收费标准")
    @NotNull(message = "收费标准不能为空")
    private double ratePerHour;
    @ApiModelProperty("车场照片")
    @NotBlank(message = "车场照片不能为空")
    private String imagePath;
    @ApiModelProperty("车场地址")
    @NotBlank(message = "车场地址不能为空")
    private String address;
    @ApiModelProperty("车场详细地址")
    @NotBlank(message = "车场详细地址不能为空")
    private String detailedAddress;
    @ApiModelProperty("硬件厂商")
    @NotBlank(message = "硬件厂商不能为空")
    private String hardwareVendor;

}
